package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@TableName("audit")
@ApiModel("审核类")
public class Audit {
    @TableId(value = "audit_id")
    @ApiModelProperty("审核id")
    private int id;
    @TableField("article_id")
    @ApiModelProperty("审核文章id")
    private int arid;
    @TableField("author_id")
    @ApiModelProperty("审核文章作者id")
    private int autid;
    @TableField("auditor_id")
    @ApiModelProperty("审核人id")
    private int audid;
    @TableField("audit_result")
    @ApiModelProperty("审核结果")
    private int res;
    @TableField("audit_time")
    @ApiModelProperty("审核时间")
    private Date time;

    public Audit() {
    }

    public Audit(int id, int arid, int autid, int audid, int res, Date time) {
        this.id = id;
        this.arid = arid;
        this.autid = autid;
        this.audid = audid;
        this.res = res;
        this.time = time;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getArid() {
        return arid;
    }

    public void setArid(int arid) {
        this.arid = arid;
    }

    public int getAutid() {
        return autid;
    }

    public void setAutid(int autid) {
        this.autid = autid;
    }

    public int getAudid() {
        return audid;
    }

    public void setAudid(int audid) {
        this.audid = audid;
    }

    public int getRes() {
        return res;
    }

    public void setRes(int res) {
        this.res = res;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "Audit{" +
                "id=" + id +
                ", arid=" + arid +
                ", autid=" + autid +
                ", audid=" + audid +
                ", res=" + res +
                ", time=" + time +
                '}';
    }


}
